//
//  SinaTestViewController.swift
//  SinaWeiBo
//
//  Created by 王忠楠 on 16/9/19.
//  Copyright © 2016年 wangzn. All rights reserved.
//

import UIKit
//测试进入的试图控制器
class SinaTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
       addNavRigthButton()
    }

   
    private func addNavRigthButton(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    //点击事件
    func pushAction() -> Void{
        
        let testVc = SinaTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
        
        
    }
    
    
}
